package javabase.schoolwork.day6_15;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author fance
 * @date 18-6-16 上午8:41
 */
public class MyInvocationHandler implements InvocationHandler {

    private Object object;

    public MyInvocationHandler(Object object) {
        this.object = object;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object tmp = method.invoke(this.object,args);
        return tmp;
    }
}
